<template>
  <ul>
    <li v-for=" item,index in todos" :key="item.id">
        <slot :item="item" :index="index"></slot>
    </li>
  </ul>
</template>

<script>
  export default {
    name:'TodoList',
    props:["todos"]
  }
</script>

<style scoped>
  
</style>